using UnityEngine;
using System.Collections;

public class TimerJauge : MonoBehaviour {

	private float mBaseSize;
	
	void Start () 
	{
		mBaseSize = guiTexture.pixelInset.width;
	}
	
	// Update is called once per frame
	void Update () 
	{
		guiTexture.pixelInset = new Rect(guiTexture.pixelInset.x, guiTexture.pixelInset.y,
		                                 mBaseSize * (LevelGenerator.sTime/LevelGenerator.sMaxTime),
		                                 guiTexture.pixelInset.height);
	}
}
